<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.username" @keyup.enter="query" placeholder="用户名">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("sys:fyparent:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:fyparent:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:fyparent:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">邮件</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.email" placeholder="邮件"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">密码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.password" placeholder="密码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">0 保密 1 男 2 女</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.sex" placeholder="0 保密 1 男 2 女"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">生日</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.birthday" placeholder="生日"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.userName" placeholder="用户名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">注册时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.regTime" placeholder="注册时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">最后登录时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.lastLogin" placeholder="最后登录时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">最后登录ip</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.lastIp" placeholder="最后登录ip"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">手机号码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.mobile" placeholder="手机号码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否验证手机</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.mobileValidated" placeholder="是否验证手机"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">第三方来源 wx weibo alipay</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.oauth" placeholder="第三方来源 wx weibo alipay"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">第三方唯一标示</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.openid" placeholder="第三方唯一标示"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.unionid" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">头像</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.headPic" placeholder="头像"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用于app 授权类似于session_id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.token" placeholder="用于app 授权类似于session_id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">推送id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.pushId" placeholder="推送id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">学生姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.studentName" placeholder="学生姓名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">学生班级</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.studentClass" placeholder="学生班级"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">关系</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.relation" placeholder="关系"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">学生班级id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.studentClassId" placeholder="学生班级id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">学生学校id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyUsers.schoolId" placeholder="学生学校id"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/fyparent.js?_${.now?long}"></script>
</body>
</html>